package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 还书记录对象 t_book_return_info
 * 
 * @author returnInfo
 * @date 2022-06-08
 */
public class TBookReturnInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 借书人 */
    @Excel(name = "借书人")
    private Long borrowUserId;

    /** 借书时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借书时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowTime;

    /** 图书名称 */
    @Excel(name = "图书名称")
    private Long bookId;

    /** 借书状态 */
    @Excel(name = "借书状态")
    private String status;

    /** 续借时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "续借时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date renewBorrowTime;

    /** 续借时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "续借时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBorrowUserId(Long borrowUserId) 
    {
        this.borrowUserId = borrowUserId;
    }

    public Long getBorrowUserId() 
    {
        return borrowUserId;
    }
    public void setBorrowTime(Date borrowTime) 
    {
        this.borrowTime = borrowTime;
    }

    public Date getBorrowTime() 
    {
        return borrowTime;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRenewBorrowTime(Date renewBorrowTime) 
    {
        this.renewBorrowTime = renewBorrowTime;
    }

    public Date getRenewBorrowTime() 
    {
        return renewBorrowTime;
    }
    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("borrowUserId", getBorrowUserId())
            .append("borrowTime", getBorrowTime())
            .append("bookId", getBookId())
            .append("status", getStatus())
            .append("renewBorrowTime", getRenewBorrowTime())
            .append("returnTime", getReturnTime())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
